package com.wenlong.dao.impl;

import com.wenlong.dao.BashDao;
import com.wenlong.dao.OrderDao;
import com.wenlong.pojo.Order;

/**
 * @author 苏文龙
 * @version 1.0
 */
public class OrderDaoImpl extends BashDao implements OrderDao {

    @Override
    public int saveOrder(Order order) {
        String sql = "insert into t_order(`order_id`,`create_time`,`price`,`status`,`user_id`) " +
                "values(?,?,?,?,?)";
        return update(sql,order.getOrderId(),order.getCreateTime(),order.getPrice(),order.getStatus(),order.getUserId());
    }
}
